package com.zxy.ziems.collector.exceptions;

/**
 * 异常判断
 * @author 10348359
 * @create 2024-04-17 10:04
 */
public class ConditionException extends RuntimeException {
    private String code;
    private String message;

    public ConditionException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public ConditionException(String message) {
        this("20001", message);
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
